package com.yunxi.model.sys;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author caoYong
 * @since 2019-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_attach")
@ApiModel(value="SysAttach对象", description="SysAttach对象")
public class SysAttach implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ATTACH_ID", type = IdType.UUID)
    private String attachId;

    @ApiModelProperty(value = "业务ID")
    @TableField("BUS_ID")
    private String busId;

    @ApiModelProperty(value = "业务子id")
    @TableField("BUS_SUB_ID")
    private String busSubId;

    @ApiModelProperty(value = "图片路径")
    @TableField("PIC_PATH")
    private String picPath;

    @ApiModelProperty(value = "上传的类型 ：0图片 ，1 文件")
    @TableField("FILE_TYPE")
    private String fileType;

    @ApiModelProperty(value = "文件名")
    @TableField("FILE_NAME")
    private String fileName;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "UPDATE_BY",fill = FieldFill.UPDATE)
    private String updateBy;


}
